package com.example.demo3;

/**
 * 单例模式 -枚举方式创建
 */
public enum SingletonDemo6 {

    INSTANCE;

    private Object data;


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static SingletonDemo6 getInstance() {
        return INSTANCE;
    }
}
